<%@ page language="java" import="java.util.*"
	contentType="text/html; charset=UTF-8" pageEncoding="utf-8"%>
<%@ include file="/common/taglibs.jsp"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>

	<table class="table table-hover">
		<caption>
			<spring:message code="userList" />
		</caption>
		<thead>
			<tr>
				<th>id</th>
				<th><spring:message code="userList.name" /></th>
				<th><spring:message code="userList.role" /></th>
				<th>Staff ID</th>
				<th></th>
			</tr>
		</thead>
		<tbody>
			<c:forEach var="user" items="${plInfo.dataList}" varStatus="status">
				<tr>
					<td>${user.id }</td>
					<td>${user.userName }</td>
					<td>${user.userRole.displayVal }</td>
					<td>${user.staffid }</td>
					<td><a href="<%=g_basePath%>/userright/get/${user.id }.htm"><spring:message
								code="userList.view" /></a></td>
				</tr>
			</c:forEach>
		</tbody>
	</table>
	<div>
		<ul class="pagination">
			<c:forEach var="page" items="${plInfo.pageList}" varStatus="status">
				<li
					<c:if test="${page eq 0}">class="disabled"</c:if>
					<c:if test="${page eq plInfo.currPageNum}">class="active"</c:if>
					<c:if test="${page gt plInfo.totalPageNum}">class="disabled"</c:if>
				><a href="<%=g_basePath%>/userright/page/${page}.htm">
				<c:choose>
					<c:when test="${page eq 0}">&laquo;</c:when>
					<c:when test="${page gt plInfo.totalPageNum}">&raquo;</c:when>
					<c:otherwise>${page}</c:otherwise>
				</c:choose>
				</a></li>
			</c:forEach>
		</ul>
	</div>
</body>
</html>
